package com.blades.monitor;

import com.blades.monitor.bean.MonitorItem;
import com.blades.monitor.core.FetchMonitor;

import java.util.List;

/**
 * Created by shuangjun.yang on 2016/3/18.
 */
public class MonitorContext {
    private FetchMonitor fetchMonitor;

    public MonitorContext(FetchMonitor fetchMonitor) {
        this.fetchMonitor = fetchMonitor;
    }

    public List<MonitorItem> getMonitorData(String url){
        return fetchMonitor.getMonitorItem(url);
    }
}
